{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "privacy/base-protocol.html" %}

{% block page_title_suffix %}{% endblock %}
{% block page_title %}{{ ftl('privacy-index-mozilla-privacy') }}{% endblock %}

{% block body_class %}mzp-t-mozilla format-none{% endblock%}
{% block body_id %}privacy-landing{% endblock %}

{% block article_header_logo %}{{ static('img/trademarks/symbol.svg') }}{% endblock %}

{% do doc.select('body > section > section ul')|htmlattr(class="mzp-u-list-styled") %}
{% do doc.select('body > section > section ol')|htmlattr(class="mzp-u-list-styled") %}

{% block title %}{{ doc.h1.string|join|safe }}{% endblock%}
{% block time %}
  {% if doc.select('[datetime]') %}
  <time datetime="{{ doc.select('[datetime]')[0]['datetime'] }}" itemprop="dateModified">{{ doc.select('[datetime]')[0].string }}</time>
  {% endif %}
{% endblock %}
{% block lead_in %}
  {% if doc.select('[datetime]') %}
    {{ doc.select('body > section > header > [datetime] ~ p')|join|safe }}
  {% else %}
    {{ doc.select('body > section > header > p')|join|safe }}
  {% endif %}
{% endblock %}
{% block sections %}
  {{ doc.select('body > section > section')|join|safe }}
{% endblock %}
{% block footnote %}
  <section id="contact" class="section-content">
    <h2>{{ ftl('privacy-index-contact-mozilla') }}</h2>
    <p>{{ ftl('privacy-index-if-you-want-to-make-a-correction') }}</p>

    <p lang="en" dir="ltr" itemscope itemtype="http://schema.org/Organization">
      <span itemprop="name">Mozilla Corporation</span><br>
      <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
        Attn: <span itemprop="name">Mozilla - Privacy</span><br>
        <span itemprop="streetAddress">149 New Montgomery St, 4th Floor</span>,<br>
        <span itemprop="addressLocality">San Francisco</span>,
        <span itemprop="addressRegion">CA</span>
        <span itemprop="postalCode">94105</span><br>
        <span itemprop="addressCountry">USA</span><br>
        <span itemprop="email"><a href="mailto:compliance@mozilla.com">compliance@mozilla.com</a></span>
      </span>
    </p>

    <p>{{ ftl('privacy-index-see-here-for-data-subject', dsar='https://privacyportal.onetrust.com/webform/1350748f-7139-405c-8188-22740b3b5587/4ba08202-2ede-4934-a89e-f0b0870f95f0') }}</p>

    <p>{{ ftl('privacy-index-for-product-support-requests', sumo='https://support.mozilla.org/') }}</p>
  </section>
{% endblock %}


{% block side_extra %}
  {% if ftl_has_messages('privacy-index-data-privacy-principles', 'privacy-index-mozillas-data-privacy-principles') %}
  <section id="side-principles" class="side-reference">
    <h2 class="side-reference-title">{{ ftl('privacy-index-data-privacy-principles') }}</h2>
    <p>{{ ftl('privacy-index-mozillas-data-privacy-principles', principles=url('privacy.principles'), faq=url('privacy.faq')) }}</p>
  </section>
  {% endif %}

  {% if ftl_has_messages('privacy-index-transparency-report', 'privacy-index-as-an-open-source-project') %}
  <section id="side-transparency" class="side-reference">
    <h2 class="side-reference-title">{{ ftl('privacy-index-transparency-report') }}</h2>
    <p>{{ ftl('privacy-index-as-an-open-source-project', report=url('mozorg.about.policy.transparency.index')) }}</p>
  </section>
  {% endif %}

  {% if ftl_has_messages('privacy-index-get-involved', 'privacy-index-to-review-and-comment-on-proposed', 'privacy-index-read-more-about-our-ongoing') %}
  <section id="side-involved" class="side-reference">
    <h2 class="side-reference-title">{{ ftl('privacy-index-get-involved') }}</h2>
    <p>{{ ftl('privacy-index-to-review-and-comment-on-proposed', group='https://groups.google.com/a/mozilla.org/g/governance/') }}</p>
    <p>{{ ftl('privacy-index-read-more-about-our-ongoing', blog='https://blog.mozilla.org/privacy/') }}</p>
  </section>
  {% endif %}

  <section id="side-archives" class="side-reference">
    <h2 class="side-reference-title"><a href="{{ url('privacy.archive.index') }}">{{ ftl('privacy-index-outdated-policies') }}</a></h2>
  </section>
{% endblock %}
